﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Common;
using Microsoft.Practices.EnterpriseLibrary.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;

namespace MINERP.DAL.CommonDAL
{
    /// <summary>
    /// 数据维护类
    /// </summary>
    public class DataMaintenance
    {
        public static void MoveHistoryData(int orderBagId)
        {
            Database db = DatabaseFactory.CreateDatabase();
            DbCommand dbCommand = db.GetStoredProcCommand("MoveHistoryData");
            db.AddInParameter(dbCommand, "@orderBagId", DbType.Int32, orderBagId);
            
            db.ExecuteNonQuery(dbCommand);
        }
    }
}
